﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="MBS._Default" %>



<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <%--<h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>--%>
    



    <div class="content">

    <script type="text/javascript" src="jquery-1.4.1.js"></script>
    <script type="text/javascript">

    
        function pageLoad(sender, args) {
            $('[id$=ddlCinema]').change(function () {
                $('[id$=SelectCinemaButton]').click();
            });

            $('[id$=ddlMovie]').change(function () {
                $('[id$=SelectMovieButton]').click();
            });
            $('[id$=ddlDate]').change(function () {
                $('[id$=SelectShowDateButton]').click();
            });
        }
        
/*
        $(document).ready(function () {
        
            $('[id$=ddlCinema]').change(function () {
                alert("cinema changed");
                $('[id$=SelectCinemaButton]').click();
            });
          
            $('[id$=ddlMovie]').change(function () {
                alert("movie changed");
                $('[id$=SelectMovieButton]').click();
            });
            $('[id$=ddlDate]').change(function () {
                alert("date changed");
                $('[id$=SelectShowDateButton]').click();
            });
            
            
            $('table').delegate('[id$=ddlCinema]', "change", function () {
                alert("delegateCinema");
            });
           
        });
    */
    </script> 

        <table>
            <tr>
                <td rowspan="2">
                    <asp:Label ID="lblNowShowing" runat="server" ForeColor="OrangeRed" Font-Bold="true"
                        Font-Names="Forte" Font-Size="X-Large" Text="N<br/>O<br/>W<br/>S<br/>H<br/>O<br/>W<br/> I<br/>N<br/>G"></asp:Label>
                </td>
                <td rowspan="2">
                    <asp:Panel ID="pnlPosters" runat="server" Width="200" Height="500">
                        <marquee behavior="scroll" direction="up" height="500">
       <img src="Images/im1.jpg" alt=""/>
       <img src="Images/im7.jpg" alt=""/>
       <img src="Images/im3.jpg" alt=""/>
       <img src="Images/im12.jpg" alt="" />
       </marquee>
                    </asp:Panel>
                </td>
                <td style="width: 700px">

                <asp:ScriptManager ID="ScriptManager" runat="server" />
                 <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
                    <ContentTemplate>
                        <fieldset id="Theatre" style="background-color:#736F6E">

                        <legend class="fieldset legend" style="background-color:#FBB117">Movie Details</legend>

                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblSelectTheatre" runat="server" Text="Cinema" CssClass="label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlCinema" runat="server" CssClass="dropdown">
                                        <asp:ListItem>Select</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:Button ID="SelectCinemaButton" runat="server" Text="SelectCinema" CssClass="submitButton" hidden=true
                                   onclick="SelectCinemaButton_Click" />
                           </td>
                                </td>
                                <td>
                                    <asp:Label ID="lblMovie" runat="server" Text="Movie" CssClass="label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlMovie" runat="server" CssClass="dropdown">
                                        <asp:ListItem>Select</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:Button ID="SelectMovieButton" runat="server" Text="SelectMovie" CssClass="submitButton" hidden=true
                                   onclick="SelectMovieButton_Click" />
                                </td>
                            </tr>
                        </table>
                    </fieldset>
            </ContentTemplate>
            <triggers>
                <asp:AsyncPostBackTrigger ControlID="ddlCinema" EventName="SelectedIndexChanged" /> 
             </triggers>
        </asp:UpdatePanel>
                </td>
                <td rowspan="2">
                   <%-- <asp:ScriptManager ID="ScriptManager1" runat="server" ></asp:ScriptManager>
                    <asp:Timer ID="Timer1" Interval="2000" runat="server" /> 
                    <asp:UpdatePanel ID="up1" runat="server" RenderMode="Inline" UpdateMode="Conditional">
                    
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                        </Triggers>
                        <ContentTemplate>
                            <asp:AdRotator ID="AdRotator1" AdvertisementFile="~/App_Data/Adv.xml" KeywordFilter="small"
                                runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>--%>
                    <asp:Label ID="lblComing" runat="server" Text="COMING SOON" Font-Bold="True" 
                        Font-Names="Forte" Font-Size="Larger" Font-Underline="True" ForeColor="#FF6600"></asp:Label>
                    <div class="verticalaccordion">
<ul>
    <li>
        <h3>Coming Soon</h3>
        <div><img src="Images/Ad1.jpg" /></div>
    </li>
    <li>
        <h3>Coming Soon</h3>
        <div><img src="Images/Ad2.jpg" /></div>
    </li>
    <li>
        <h3>Coming Soon</h3>
        <div><img src="Images/Ad3.jpg" /></div>
    </li>
    <li>
        <h3>Coming Soon</h3>
        <div><img src="Images/Ad4.jpg" /></div>
    </li>
</ul>
</div>
                </td>
            </tr>
            <tr>
                <td>

                <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server">
                    <ContentTemplate>
                        <fieldset id="show" style="background-color:#736F6E">
                        <legend class="fieldset legend"  style="background-color:#FBB117">Show Details</legend>

                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lblDate" runat="server" CssClass="label" Text="Date"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDate" runat="server" CssClass="dropdown" >
                                        <asp:ListItem>Select</asp:ListItem>
                                    </asp:DropDownList>
                                     <asp:Button ID="SelectShowDateButton" runat="server" Text="SelectShowDate" CssClass="submitButton" hidden=true
                                   onclick="SelectShowDateButton_Click" />
                                </td>
                               
                                <td>
                                    <asp:Label ID="lblTime" runat="server" Text="Timings" CssClass="label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlTime" runat="server" CssClass="dropdown">
                                        <asp:ListItem>Select</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                            
                            <td>
                                &nbsp;</td>
                            </tr>
                            <tr>
                            <td></td>
                           <td>
                           <asp:Button ID="btnSubmit" runat="server" Text="Book" CssClass="submitButton" 
                                   onclick="btnSubmit_Click" />
                           </td>
                            </tr>
                        </table>
                    </fieldset>
            </ContentTemplate>
            <triggers>
                <asp:AsyncPostBackTrigger ControlID="ddlCinema" EventName="SelectedIndexChanged" />
                <asp:AsyncPostBackTrigger ControlID="ddlMovie" EventName="SelectedIndexChanged" />
              <asp:AsyncPostBackTrigger ControlID="ddlDate" EventName="SelectedIndexChanged" />
             </triggers>
        </asp:UpdatePanel>
                </td>
            </tr>
           </table>
    </div>
</asp:Content>
